package com.ci.test.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author motorfu
 * @since 2017-07-19 15:56
 */
@RestController
@RequestMapping(value = "/api")
public class ApiController{

  @GetMapping("{id}")
  public String getApi (@PathVariable("id") long id) {
    return "api is "+id;
  }

}